package com.treasure.hunt.mode

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.blankj.utilcode.util.LogUtils
import com.module.lemlin.base.BaseViewModel
import com.module.lemlin.mode.ViewModelSubscribe
import com.module.lemlin.rxhttp.HttpServiceData
import com.module.lemlin.rxhttp.HttpServiceResponse
import com.treasure.hunt.api.cardExchange
import com.treasure.hunt.api.cardGiveCartLog
import com.treasure.hunt.api.cardList
import com.treasure.hunt.entity.CardGiveResponse
import com.treasure.hunt.entity.CardListResponse
import com.treasure.hunt.entity.OtherConfigResponse
import com.treasure.hunt.entity.OtherUrlResponse
import io.reactivex.rxjava3.disposables.Disposable

class SplashViewMode(application: Application) : AdViewMode(application) {
    val otherConfigLiveData = MutableLiveData<HttpServiceResponse<OtherConfigResponse>>()
    fun otherGetConfig(name: String) {
        val disposable: Disposable =
            com.treasure.hunt.api.otherGetConfig2(name, ViewModelSubscribe(otherConfigLiveData))
        dispose.add(disposable)
    }
}